Testing Polymorphic Properties
نویسندگان
چکیده
This paper is concerned with testing properties of polymorphic functions. The problem is that testing can only be performed on specific monomorphic instances, whereas parametrically polymorphic functions are expected to work for any type. We present a schema for constructing a monomorphic instance for a polymorphic property, such that correctness of that single instance implies correctness for all other instances. We also give a formal definition of the class of polymorphic properties the schema can be used for. Compared to the standard method of testing such properties, our schema leads to a significant reduction of necessary test cases.
منابع مشابه
A Theory of Parametric Polymorphism and an Application ; A formalisation of parametric polymorphism within and about dependent type-theory, and an application to property-based testing
This thesis revisits the well-known notion of parametric polymorphism in the light of modern developments in type-theory. Additionally, applications of parametric polymorphism are also presented. The first part of the thesis presents a theoretical investigation of the semantics of parametric polymorphism of and within type-theories with dependent types. It is shown how the meaning of polymorphi...
متن کاملGenotyping of Five Polymorphic STR Loci in Iranian Province of Isfahan
Genotyping for five short tandem repeat (STR) loci HUMvWA, HUMFES, HUMTPO, HUMTH01 and D3S1359 was done in 220 unrelated individuals from the population of Isfahan province of IR Iran. The loci were genotyped using the polymerase chain reaction (PCR) followed by polyacrylamide gel electrophoresis (PAGE) and silver staining. The data demonstrated that the STR markers were all found informative i...
متن کاملEpinephrine infusion in the evaluation of unexplained cardiac arrest and familial sudden death: from the cardiac arrest survivors with preserved Ejection Fraction Registry.
BACKGROUND Epinephrine infusion may unmask latent genetic conditions associated with cardiac arrest, including long-QT syndrome and catecholaminergic polymorphic ventricular tachycardia (VT). METHODS AND RESULTS Patients with unexplained cardiac arrest (normal left ventricular function and QT interval) and selected family members from the Cardiac Arrest Survivors with Preserved Ejection Fract...
متن کاملAdvances in Arrhythmia and Electrophysiology How to Perform and Interpret Provocative Testing for the Diagnosis of Brugada Syndrome, Long-QT Syndrome, and Catecholaminergic Polymorphic Ventricular Tachycardia
Sudden cardiac death (SCD) is predominantly related to coronary artery disease and its sequelae, cardiomyopathy, and congenital or valvular heart disease. No structural abnormalities are detectable in 5–8% of SCDs.1 Identified ion channelopathies such as Brugada syndrome, long-QT syndrome (LQTS), and catecholaminergic polymorphic ventricular tachycardia (CPVT) contribute to this incidence. The ...
متن کاملGenerating State - based Polymorphic Interaction Graph from UML Diagrams for Object Oriented Testing
Object Oriented (OO) features such as inheritance, polymorphism, and dynamic binding provide not only efficient development of software for even complex system, but also new challenges for software testing. Recently, more and more researchers have realized that UML models can be a source for software testing. We propose POLYmorphism State SEquence TEst Model (POLYSSETEM) generated from Class, S...
متن کاملذخیره در منابع من
با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید
عنوان ژورنال:
دوره شماره
صفحات -
تاریخ انتشار 2010